pkgname=turbostat
pkgver=git
pkgrel=1
url='https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
arch=('i386' 'x86_64')
license=('GPL')
makedepends_debian_11=(libcap-dev)
source=("git://$GIT_SERVER/l/linux/linux.git")
md5sums=('SKIP')

build()
{
	cd $srcdir/linux/tools/power/x86/turbostat
	make
}

package()
{
	benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
	mkdir -p $benchmark_path
	cp -af $srcdir/linux/tools/power/x86/turbostat/turbostat $benchmark_path
}
